package com.ftm.dao;


import com.ftm.entity.Orders;
import com.ftm.tools.PageData;

/**
 * 订单表的Dao
 * @author ZZP
 *
 */
public interface OrdersDao {
	// 增加商品
	public boolean addOrders(Orders orders);
	//删除订单
	public boolean delOrders(int orderid);
	//修改订单(只能修复商品数量,订单状态和总花费)
	public boolean upOrders(int ordersum,int orderstate,double total,int orderid);
	//修改订单状态
	public boolean upOrdersState(int orderstate,int orderid);
	//查找订单(买家id)
	public PageData<Orders> queryOrdersUserid(int page, int pageSize, int userid);

	//查找订单(订单状态)
	public PageData<Orders> queryOrdersState(int page, int pageSize, int orderstate);
	// 查询商品详细信息(商品详情)
	public Orders queryOneOrders(int orderid);
}
